<?php

/* By: Lloyd Sanchez
 * This file will contain ExcelSaverBase type of classes
 */

class RejectCodesSaver extends ExcelSaverBase{
	public function save(){
		//print_r($this->data);
		Zend_loader::loadClass("RejectReason");
		
		$auth = BaseAuth::getInstance();
		
		$sheet		=	$this->data[0];
		$cnt		=	0;
		foreach($sheet as $key=>$row){
			if($cnt>0){
				$reason = new RejectReason();
				$reason->reason			= $row['Value'];
				$reason->date_created 	= date("Y-m-d H:i:s");
				$reason->created_by		= $auth->id;
				
				$reason->save();
				$reason->reject_reason_id=$reason->id;
				$reason->save();
			}
			$cnt++;
		}
	}
}

class PaymentToFishersSaver extends ExcelSaverBase{
	public function save(){
	
	}
}

?>